<template>
  <view class="container">
    <uni-nav-bar
      dark
      :fixed="true"
      shadow
      status-bar
      left-icon="home"
      size="20"
      background-color="#007AFF"
      left-text="返回"
      title="自定义导航栏"
      @clickLeft="back"
    />
  </view>
</template>

<script setup lang="ts">
const back = () => {
  console.log("打印");
};
</script>
<style lang="scss">
$nav-height: 30px;
.container {
  background-color: antiquewhite;
}
</style>
